﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员登录</title>
    <link href="/skin/default/style.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            //检测IE
            if ('undefined' == typeof (document.body.style.maxHeight)) {
                window.location.href = '/ie6update.html';
            }
            $(".login-btn").click(function () {
                if ($("#UserName").val() == "" || $("#password").val() == "") {
                    $("#msgtip").val("请输入用户名和密码");
                    return false;
                }
                $.post("/Login/Login?UserName=" + $("#UserName").val() + "&password=" + $("#password").val(),
                    function (result) {
                        if (result != "1") { $("#msgtip").html(result); alert(result); }

                        else
                            window.location.href = '/Home/Center';
                    }
                );
            })
        });
    </script>

</head>

<body class="loginbody">
    <form accept-charset="UTF-8" method="post" id="form1">
        <div style="width: 100%; height: 100%; min-width: 300px; min-height: 260px;"></div>
        <div class="login-wrap">
            @*<div class="login-logo">LOGO</div>*@
            <div class="login-form">
                <div class="col">
                    <input class="login-input" id="UserName" name="UserName" placeholder="管理员账号" title="管理员账号" type="text" />
                    <label class="icon user" for="UserName"></label>
                </div>
                <div class="col">
                    <input class="login-input" id="password" name="password" placeholder="密码" type="password" title="密码" />

                    <label class="icon pwd" for="password"></label>
                </div>
                <div class="col">
                    <button class="login-btn" name="button" type="button">登录</button>
                </div>
            </div>
            <div class="login-tips">
                <i></i>
                <p id="msgtip" runat="server">请输入用户名和密码</p>
            </div>
        </div>

        <div class="copy-right">
            <p>北京撩娃科技发展有限公司 Copyright © 2011 - 2018 dtsoft.net Inc. All Rights Reserved.</p>
        </div>
    </form>
</body>
</html>
